<form [formGroup]="form">
  <label *ngFor="let field of fieldBase">
    {{field.name}}
    <ng-container ngSwitch="{{field.type}}">
      <input *ngSwitchCase="'text'" [formControlName]="field.id">

      <select *ngSwitchCase="'select'" [formControlName]="field.id">
        <option *ngFor="let opt of field._dataSourceOption" value="{{opt}}">{{opt}}</option>
      </select>

      <select *ngSwitchCase="'radio'" [formControlName]="field.id">
        <option *ngFor="let opt of field.dataSourceData" value="{{opt}}">{{opt}}</option>
      </select>
    </ng-container>
  </label>
</form>
